package com.scs.application.modules.device.controller;

import com.scs.application.core.mvc.controller.FlowController;
import com.scs.application.modules.device.entity.DevicePlanTask;
import com.scs.application.modules.device.service.DevicePlanTaskService;
import com.scs.application.modules.sys.model.RestResult;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;


/**
 *  设备计划任务服务层
 */
@RestController
@RequestMapping("/device/plan_task")
public class DevicePlanTaskController extends FlowController<DevicePlanTaskService, DevicePlanTask> {

    /***
     * @param busType
     * @Description:  根据计划生成任务
     */
    @GetMapping("/buildByPlan")
    synchronized public RestResult buildByPlan(String taskbusType) {
        return service.buildByPlan(taskbusType);
    }
}